<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@page import="java.util.Date"%>
<%@page import="cn.ainit.sys.menu.SessionCont"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="fmt"%>
<jsp:useBean id="now" class="java.util.Date" scope="page"/>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    	<link rel="stylesheet" href="${pageContext.request.contextPath}/css/ainit.css" type="text/css"></link>
		<link rel="stylesheet" href="../printCss/print.css" type="text/css"></link>
		<link rel="stylesheet" type="text/css" href="${pageContext.request.contextPath}/sysPrint/printCss/print.css" />
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery-1.4.4.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/My97DatePicker/WdatePicker.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.easyui.min.1.2.2.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/locale/easyui-lang-zh_CN.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.json-2.4.min.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/js/jquery.ainit-1.0.0.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/js/jquery.ainit-1.1.0.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/js/model.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/js/perlize.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/js/save.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/model/js/initPage.js"></script>
		<script type="text/javascript" src="${pageContext.request.contextPath}/sysReport/report.js"></script>

		<script type="text/javascript">
			$(function() {
				$("#dotted :last ").remove()
			});
		</script>
		<style type="text/css">
		table{border-collapse:collapse;
			}
		</style>
		<script type="text/javascript">
        window.onload=function name(){
          window.print();
          window.close();
    }
     </script> 
	</head>
	<body>
<table cellpadding="0px" cellspacing="0px" width="730px" border="0">
                        <tr>
                            <th colspan="40" style="font-size: 22px">${Company.COM_PRINTNAME}预付单</th>
                        </tr>
                        </table>
                        
                        <table width="730px">
                        <tr>
                        <td colspan="7">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</td>
                        <td colspan="4"><strong>打印日期:</strong></td>
                        <td colspan="2"> <fmt:formatDate value="${now}" pattern="yyyy-MM-dd hh:mm:ss" /></td>
                        </tr>
                        </table>
                        <table width="730px">
                       <tr>
                        <td><strong>部门:</strong></td>
                        <td style="width: 15mm"><strong>${data.BUMEN }&nbsp;</strong></td>
                        <td><strong>项目:</strong></td>
                        <td style="width: 65mm"><strong>${data.XT_NAME }&nbsp;</strong></td>     
                        <td colspan="4"><strong>编号:</strong></td>
                        <td colspan="2" ><strong>${data.DJ_CODE}&nbsp;</strong></td>
                       </tr>
                       </table>
                       
                       
                       <table  cellpadding="0px" cellspacing="0px" width="730px" border="1">
                       <tr>
                       <td style="width:15%"></td>
                       <td style="width:19%"></td>
                       <td style="width:17%"></td>
                       <td style="width:3%"></td>
                       <td style="width:3%"></td>
                       <td style="width:3%"></td>
                       <td style="width:3%"></td>
                       <td style="width:3%"></td>
                       <td style="width:3%"></td>
                       <td style="width:3%"></td>
                       <td style="width:3%"></td>
                       <td style="width:3%"></td>
                       <td style="width:13%"></td>
                       <td style="width:10%"></td>
                       </tr>
                       <tr>
                        <td><strong>收款单位:</strong></td>
                        <td colspan="11" ><strong>${data.M_NAME }&nbsp;</strong></td> 
                        
                        <td rowspan="2" align="right"><strong>备注:</strong></td>
                        <td rowspan="2"><strong>&nbsp;</strong></td> 
                       </tr>
                       
                       <tr>            
                        <td><strong>开户银行:</strong></td>
                        <td colspan="11" ><strong>${data.BANK_NAME }&nbsp;</strong></td> 
                       </tr>
  
                       <tr>
                        <td><strong>银行账号:</strong></td>
                        <td colspan="11" ><strong>${data.BANK_NO}&nbsp;</strong></td>
                        <td align="right"><strong>付款进度:</strong></td>  
                        <td>&nbsp;</td>      
                       </tr>    
                        
                       
                       <tr> 
                        <td><strong>付款方式:</strong></td>
                        <td colspan="11" ><strong>&nbsp;</strong></td>
                        <td align="right"><strong>应付款:</strong></td>  
                        <td>&nbsp;</td>    
                       </tr>     
                       <tr>
                        <td colspan="3"  align="center"><strong>请款事由:</strong></td>
                        <td colspan="9"  align="center"><strong>金额（小写）</strong></td>   
                        <td  align="right"><strong>已付:</strong></td>  
                        <td>&nbsp;</td>    
                       </tr>         

                       <tr>
                        <td colspan="3" rowspan="5"><strong>${data.MEMO }&nbsp;</strong></td>
                        <td>佰</td>   
                        <td>拾</td>
                        <td>万</td>
                        <td>仟</td>
                        <td>佰</td>
                        <td>拾</td>
                        <td>元</td>
                        <td>角</td>
                        <td>分</td>
                        
                        <td align="right"><strong>合同编号:</strong></td>  
                        <td>&nbsp;</td>    
                       </tr>
                       <tr>
                       <td><c:if test ="${data.BAIWAN==0}" >&nbsp;</c:if><c:if test ="${data.BAIWAN!=0}" >${data.BAIWAN}</c:if></td>
                       
                       <td><c:if test ="${data.BAIWAN==0 and data.SHIWAN==0}" >&nbsp;</c:if><c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0}" >${data.SHIWAN}</c:if></td>
                       <td><c:if test ="${data.BAIWAN==0 and data.SHIWAN==0 and data.WAN==0}" >&nbsp;</c:if><c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0 or data.WAN!=0}" >${data.WAN}</c:if></td>
                       <td><c:if test ="${data.BAIWAN==0 and data.SHIWAN==0 and data.WAN==0 and data.QIAN==0}" >&nbsp;</c:if><c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0 or data.WAN!=0 or data.QIAN!=0}" >${data.QIAN}</c:if></td>
                       <td><c:if test ="${data.BAIWAN==0 and data.SHIWAN==0 and data.WAN==0 and data.QIAN==0 and data.BAI==0}" >
                            &nbsp;</c:if>
                       <c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0 or data.WAN!=0 or data.QIAN!=0 or data.BAI!=0}" >
                       ${data.BAI}</c:if></td>
                       <td>
                       <c:if test ="${data.BAIWAN==0 and data.SHIWAN==0 and data.WAN==0 and data.QIAN==0 and data.BAI==0 and data.SHI==0}" >
                       &nbsp;</c:if>
                       
                       <c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0 or data.WAN!=0 or data.QIAN!=0 or data.BAI!=0 or data.SHI!=0}" >
                       ${data.SHI}</c:if>
                
                       
                       </td>
                       <td>${data.YAN}</td>
                       <td>${data.JIAO}</td>
                       <td>${data.FEN}</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       </tr>
                       <tr>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td colspan="2" rowspan="4">&nbsp;</td>
                       </tr>
                        <tr>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       </tr>
                       <tr>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       <td>&nbsp;</td>
                       </tr>
                       <tr>
                        <td><strong>合计(大写):</strong></td>
                        <td colspan="2" >${data.DAXIE }&nbsp;</td>   
                       <td><c:if test ="${data.BAIWAN==0}" >&nbsp;</c:if><c:if test ="${data.BAIWAN!=0}" >${data.BAIWAN}</c:if></td>
                       <td><c:if test ="${data.BAIWAN==0 and data.SHIWAN==0}" >&nbsp;</c:if><c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0}" >${data.SHIWAN}</c:if></td>
                       
                       <td><c:if test ="${data.BAIWAN==0 and data.SHIWAN==0 and data.WAN==0}" >&nbsp;</c:if>
                       <c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0 or data.WAN!=0}" >${data.WAN}</c:if></td>
                       
                       <td><c:if test ="${data.BAIWAN==0 and data.SHIWAN==0 and data.WAN==0 and data.QIAN==0}" >&nbsp;</c:if>
                       <c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0 or data.WAN!=0 or data.QIAN!=0}" >${data.QIAN}</c:if></td>
                       
                       <td><c:if test ="${data.BAIWAN==0 and data.SHIWAN==0 and data.WAN==0 and data.QIAN==0 and data.BAI==0}" >
                            &nbsp;</c:if>
                       <c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0 or data.WAN!=0 or data.QIAN!=0 or data.BAI!=0}" >
                       ${data.BAI}</c:if></td>
                       <td>
                       <c:if test ="${data.BAIWAN==0 and data.SHIWAN==0 and data.WAN==0 and data.QIAN==0 and data.BAI==0 and data.SHI==0}" >
                       &nbsp;</c:if>
                       
                       <c:if test ="${data.BAIWAN!=0 or data.SHIWAN!=0 or data.WAN!=0 or data.QIAN!=0 or data.BAI!=0 or data.SHI!=0}" >
                       ${data.SHI}</c:if>
                
                       
                       </td>
                       <td>${data.YAN}</td>
                       <td>${data.JIAO}</td>
                       <td>${data.FEN}</td>
                       
                       </tr>         


                       </table>
                       
                       
                       
                       
                       
                       <table cellpadding="0px" cellspacing="0px" width="730px" border="0">
                       <tr>
                        <td><strong>总裁签批:</strong></td>
                        <td><strong>&nbsp;</strong></td>  
                        <td><strong>财务部审核:</strong></td>
                        <td><strong>&nbsp;</strong></td>  
                        <td><strong>分管领导审批:</strong></td>
                        <td><strong>&nbsp;</strong></td>  
                        <td><strong>项目经理:</strong></td>
                        <td><strong>&nbsp;</strong></td>  
                        <td><strong>填表人:</strong></td>
                        <td><strong>&nbsp;</strong></td>  
                       </tr>  
                        
                        
                     
        				<tr height="40">
                            <td colspan="13" align="right">
                                <span style="font-size: 11px ;color: #9BA4AF">技术支持:</span>
                                <span style="font-size: 12px ;color: #9BA4AF">上海爱你特科技  www.ainit.cn</span>			
                            </td>
                        </tr>
                 </table>
    </body>
</html>